<?php
	
	// Integrimi i skedave sistemore
    include('../include/functions.inc.php');
	include('../include/template.class.php');
	
	
	// PROJECT
	$PROJECT = setProject();
	
	
	// Ndyshoret primare
	define('TPL','../include/styles/'.$PROJECT['style'].'/dielli/donation.html');
	define('FILENAME',basename($_SERVER["PHP_SELF"]));
	
	
	// TMP CLASS
	$tmp = new Template(TPL,$PROJECT['lang']);
	
		
	// MENUES
	$tmp->setContent("CATEGORY",$tmp->menu("category","../dielli"));
	$tmp->setContent("DIELLI",$tmp->menu("dielli",FILENAME));
	$tmp->setContent("FOOTMENU",$tmp->menu("foot"));
	
	
	$tmp->setContent("NEWS",news("dielli"));
	$tmp->setContent("RANDOM",randomContent("dielli"));
	
	// DB CONNECT
	dbOpen("dielli");
	
	
	$VARS = mysql_fetch_assoc(mysql_query("SELECT title,content FROM contents WHERE cat = 'donation'"));
	$VARS['content'] = nl2br($VARS['content']);
	$tmp->setContent($VARS);
	
	
	// LABELS
	$tmp->setLabels();
	
	
	// DISPLAY ALL						  
	echo $tmp->vorlage;
?>